package cn.agiledata.bank.transaction.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import cn.agiledata.bank.transaction.logic.BatchPeerAccount;

public class BatchPayForm extends MultiStepForm {
    private long subAccountId;

    private String purpose;

    private String remark;

    private String type;

    private BatchPeerAccount batchPeerAccount;

    public BatchPayForm() {
        this.subAccountId = 0;
        this.purpose = "";
        this.remark = "";
        this.type = "";
    }

    public long getSubAccountId() {
        return this.subAccountId;
    }

    public void setSubAccountId(long subAccountId) {
        this.subAccountId = subAccountId;
    }

    public String getPurpose() {
        return this.purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BatchPeerAccount getBatchPeerAccount() {
        return this.batchPeerAccount;
    }

    public void setBatchPeerAccount(BatchPeerAccount batchPeerAccount) {
        this.batchPeerAccount = batchPeerAccount;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        if (isResetable()) {
            this.subAccountId = 0;
            this.purpose = "";
            this.remark = "";
            this.type = "";
            this.batchPeerAccount = null;
        }
    }
}
